package com.blb.entity;

import lombok.Data;

import java.util.Collection;

@Data
public class ResponseHelp {
    private boolean rs = true;
    private String msg;
    private Collection<?> data;


    public static ResponseHelp success(){
        ResponseHelp help= new ResponseHelp();
        System.out.println(help);
        return help;
    }

    public static ResponseHelp error(String msg){
        ResponseHelp responseHelp = new ResponseHelp();
        responseHelp.setRs(false);
        responseHelp.setMsg(msg);
        return responseHelp;
    }
}
